For other containers see the built-in list, set, and tuple classes, as well as the collections module. dir ([object]) ... len (s) Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, o